﻿// See https://aka.ms/new-console-template for more information
using LuanNiao.JsonConverterExtends;

var filePath = @"D:\CompanySources\general-control-platform-server\Plugins\System.FileServer\Z.FileServerTest\bin\Debug\net6.0\Grpc.Core.Api.dll";
var filePath1 = @"D:\BCompare-4.4.0.25886.exe";
var host = "https://benpc.gcc.gcc:5000/";
var items = new List<FileInfo>();
items.Add(new FileInfo(filePath));

foreach (var item in System.FileServer.Client.Manager.GRPCCreateBigFile(host, filePath1, Guid.NewGuid().ToString("N")))
{
    Console.WriteLine($"Response:{System.Text.Json.JsonSerializer.Serialize(item.res, CommonSerializerOptions.CamelCaseChineseNameCaseInsensitive)}");
    Console.WriteLine($"index:{item.index}/{item.totalPackage}");
    Console.WriteLine($"token:{item.token}");
    Console.WriteLine();
}



Console.ReadLine();